const getters = {
    sidebar: state => state.app.sidebar,
    device: state => state.app.device,
    //为了其他模块和组件更好的获取token数据，将token值作为公共的访问属性放出
    token: state => state.user.token, //建立token的快捷访问
    userId: state => state.user.userInfo.userId, //建立用户资料的快捷访问
    staffPhoto: state => state.user.userInfo.staffPhoto, //建立用户头像的快捷访问
    username: state => state.user.userInfo.username //建立用户昵称的快捷访问


}
export default getters